/**
 * API请求模块
 */

import request from '@/utils/request'

// 猜你想搜
export const Understand = (data: any) => {
  return request<any>({
    method: 'POST',
    url: `/serverGovernance/debtInfo/debtManager/Understand/v1.0.0`,
    timeout: 90000000,
    data
  })
}

// 语音转文字
export const Audio2Text = (data: any) => {
  return request<any>({
    method: 'POST',
    url: `/serverGovernance/debtlnfo/debtManager/Audio2Text/v1.0.0`,
    timeout: 9000000,
    data
  })
}

// 获取列表
export const QueryPageList = (data: any) => {
  return request<any>({
    method: 'POST',
    url: `/serverGovernance/debtInfo/debtManager/QueryPageList/v1.0.0`,
    data
  })
}

// 新增
export const DebtInfoAdd = (data: any) => {
  return request<any>({
    method: 'POST',
    url: `/serverGovernance/debtInfo/debtManager/DebtInfoAdd/v1.0.0`,
    data
  })
}

// 编辑
export const DebtInfoEdit = (data: any) => {
  return request<any>({
    method: 'POST',
    url: `/serverGovernance/debtInfo/debtManager/DebtInfoEdit/v1.0.0`,
    data
  })
}

// 删除
export const DebtInfoDeleteById = (data: any) => {
  return request<any>({
    method: 'POST',
    url: `/serverGovernance/debtInfo/debtManager/DebtInfoDeleteById/v1.0.0`,
    data
  })
}
